import { NavBar } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'

const Cart = () => {
  const navigate = useNavigate()

  const back = () => {
    navigate(-1)
  }

  return (
    <>
      {/* 导航栏 */}
      <div style={{ borderBottom: '1px solid #eee' }}>
        <NavBar style={{color:'#fff', backgroundColor:'#108ee9'}} back='返回' onBack={back}>
          购物车
        </NavBar>
      </div>
      <div>购物车</div>
    </>
  )
}

export default Cart
